<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
        width: 200px;
        height: 200px;
    }

    .div1 {
        background-color: black;
        float: left;
    }

    .div2 {
        background-color: brown;
        float: right;
    }
    </style>
</head>
<body>
    <div class="div1">
        div1
    </div>

    <div class="div2">
        div2
    </div>


</body>
</html>